package com.example.security1.util.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class RouterVO {

    private String path;
    private String component;
    private String name;
    private String redirect;
    private Meta meta;

    @Data
    @AllArgsConstructor
    public static class Meta {
        private String title;
        private String icon;
        private Object[] roles;
    }

    private List<RouterVO> children = new ArrayList<>();
}
